package com.zhiling.www.entity;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 委托订单实体类
 */
@Table(name = "stock_EntrustOrder")
public class EntrustOrder {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer oid;//委托订单号
    private Integer oStockUid;//委托订单所属用户id
    private Integer oStockType;//委托订单类型，0 买入，1卖出
    private String oStockCode;//委托股票代码
    private String oStockName;//委托股票名称
    private Double oStockPrice;//委托价格
    private Integer oStockNum;//委托数量
    private Integer oStatus;//委托订单状态 0 已报，1已成交，2，已撤单
    private Date oEntrusttime;//委托时间

    public EntrustOrder() {
    }

    public EntrustOrder(Integer oid, Integer oStockUid, Integer oStockType, String oStockCode, String oStockName, Double oStockPrice, Integer oStockNum, Integer oStatus, Date oEntrusttime) {
        this.oid = oid;
        this.oStockUid = oStockUid;
        this.oStockType = oStockType;
        this.oStockCode = oStockCode;
        this.oStockName = oStockName;
        this.oStockPrice = oStockPrice;
        this.oStockNum = oStockNum;
        this.oStatus = oStatus;
        this.oEntrusttime = oEntrusttime;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getoStockUid() {
        return oStockUid;
    }

    public void setoStockUid(Integer oStockUid) {
        this.oStockUid = oStockUid;
    }

    public Integer getoStockType() {
        return oStockType;
    }

    public void setoStockType(Integer oStockType) {
        this.oStockType = oStockType;
    }

    public String getoStockCode() {
        return oStockCode;
    }

    public void setoStockCode(String oStockCode) {
        this.oStockCode = oStockCode;
    }

    public String getoStockName() {
        return oStockName;
    }

    public void setoStockName(String oStockName) {
        this.oStockName = oStockName;
    }

    public Double getoStockPrice() {
        return oStockPrice;
    }

    public void setoStockPrice(Double oStockPrice) {
        this.oStockPrice = oStockPrice;
    }

    public Integer getoStockNum() {
        return oStockNum;
    }

    public void setoStockNum(Integer oStockNum) {
        this.oStockNum = oStockNum;
    }

    public Integer getoStatus() {
        return oStatus;
    }

    public void setoStatus(Integer oStatus) {
        this.oStatus = oStatus;
    }

    public Date getoEntrusttime() {
        return oEntrusttime;
    }

    public void setoEntrusttime(Date oEntrusttime) {
        this.oEntrusttime = oEntrusttime;
    }

    @Override
    public String toString() {
        return "EntrustOrder{" +
                "oid=" + oid +
                ", oStockUid=" + oStockUid +
                ", oStockType=" + oStockType +
                ", oStockCode='" + oStockCode + '\'' +
                ", oStockName='" + oStockName + '\'' +
                ", oStockPrice=" + oStockPrice +
                ", oStockNum=" + oStockNum +
                ", oStatus=" + oStatus +
                ", oEntrusttime=" + oEntrusttime +
                '}';
    }
}
